

import 'package:yd_eval/manager/yd_eval_manager.dart';

class YdEvalEntity {

  /// 评测语言类型
  String langType = YdEvalType.TYPE_EN;

  /// 评测内容
  String content = '';

  /// 评测的句子、单词音频
  String? voice;

  /// 是否需要先播放评测的音频
  bool isPlayVoice = false;

  /// 音频的跳过时间
  double? startAt;
  double? endAt;

  /// 扩展字段
  dynamic ext;

  String get txt => content.replaceAll(' ', ' ');

  YdEvalEntity({
    required this.langType,
    required this.content,
    this.voice,
    this.isPlayVoice = false,
    this.startAt,
    this.endAt,
    this.ext,
  });
}